<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>用户修改</title>
		<!--导入框架样式文件-->
		<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" href="css/bootstrap.min.css" />
		<script type="text/javascript" th:src="@{/js/jquery1.12.4.min.js}" src="js/jquery1.12.4.min.js"></script>
		<script type="text/javascript" th:src="@{/js/bootstrap.min.js}" src="js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="container">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">用户修改</h3>
				</div>
				<div class="panel-body">
					<form th:object="${user}" class="form-horizontal" method="post" th:action="@{/user/update}" action="">
						<input class="hidden" th:name="uid" th:value="*{uid}">
						<div class="form-group">
							<label  class="col-sm-2 control-label">用户名称</label>
							<div class="col-sm-10">
								<input type="text" th:value="*{username}" class="form-control" name="username"   placeholder="请输入用户名称" required >
							</div>
						</div>
							<div class="form-group">
							<label class="col-sm-2 control-label">密码</label>
							<div class="col-sm-10">
								<input type="text" th:value="*{password}" class="form-control" name="password" placeholder="请输入密码" required >
							</div>
						</div>
							<div class="form-group">
							<label  class="col-sm-2 control-label">真实姓名</label>
							<div class="col-sm-10">
								<input type="text" th:value="*{realname}" class="form-control" name="realname" placeholder="请输入真实姓名" required >
							</div>
						</div>
							<div class="form-group">
							<label  class="col-sm-2 control-label">邮箱</label>
							<div class="col-sm-10">
								<input type="text" th:value="*{email}"  class="form-control" name="email" placeholder="请输入邮箱" required>
							</div>
						</div>
						<div class="form-group">
							<label  class="col-sm-2 control-label">电话号码</label>
							<div class="col-sm-10">
								<input type="text" th:value="*{telephone}" class="form-control" name="telephone" placeholder="请输入电话号码" required>
							</div>
						</div>
					
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-success">修改</button>
								<a href="/user/list" class="btn btn-default">返回</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>

</html>